# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Josip Ponjavic <josipponjavic at gmail dot com>
# Contributor: Xu Fasheng <fasheng.xu[AT]gmail.com>

pkgname=deepin-picker
pkgver=6.0.0
pkgrel=1
pkgdesc='Color picker tool for deepin'
arch=('loong64' 'x86_64')
url="https://github.com/linuxdeepin/deepin-picker"
license=('GPL3')
depends=('deepin-qt5integration' 'libxtst' 'qt5-svg')
makedepends=('qt5-tools' 'deepin-gettext-tools')
groups=('deepin-extra')
source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-picker/archive/$pkgver.tar.gz")
sha512sums=('a219476e7ab737a352ebaa3a3e576b397dfc689ade5ebf82bb9a87783cc55723089cebc8309e06e4b236d14f3c23cef9e1948146a9b8140d17bf30f676583506')

build() {
  cd deepin-picker-$pkgver
  qmake-qt5 PREFIX=/usr
  make
}

package() {
  cd deepin-picker-$pkgver
  make INSTALL_ROOT="$pkgdir" install
}
